package com.ynny.interfance_.demo03;

public class Car extends Vehicle implements IPower{
    private String carNumber;

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    @Override
    public void run() {
        System.out.println(getColor() + getBrand() + "汽车行驶");
    }

    @Override
    public void power() {
        System.out.println("加油供能~~~");
    }
}
